<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 14-5-19
 * Time: 上午11:03
 */

namespace Admin\Controller;
use Common\Controller\AdminCommonController;
use Think\Cache\Driver\Memcache;

/**
 * Class CacheController
 * @package Admin\Controller
 *缓存管理控制器
 * 20140519添加
 */
class CacheController extends AdminCommonController {
    public function index(){
        header('charset=utf-8');
        deletedir(RUNTIME_PATH,false);
        //getRedis(0)->flushDB();//清除redis 数据库0的数据
        $m = new Memcache();
        $m->clear();//清除memcache的数据

        $this->display();
    }
} 